package com.youhome.service.service;

import com.github.pagehelper.PageInfo;
import com.youhome.common.exception.CustomException;
import com.youhome.service.model.HouseVideo;

import java.util.List;

/**
 * Created by chen365 on 2019/01/17.
 */
public interface HouseVideoService {
    int deleteByPrimaryKey(String videoId);

    int insert(HouseVideo record);

    int insertSelective(HouseVideo record);

    int updateByPrimaryKeySelective(HouseVideo record);

    int selectCountByHouseId(String houseId);

    HouseVideo selectByPrimaryKey(String videoId);

    List<HouseVideo> selectByBean(HouseVideo record);

    List<HouseVideo> selectByHouseId(String houseId);

    List<String> selectVideoUrlByHouseId(String houseId);

    void TimedSearchUpdateVideoTransCodingStatus(); //定时查询更新视频转码状态

    void TimedSearchUpdateVideoTransCodingStatus(String jobId); //定时查询更新视频转码状态

    PageInfo<HouseVideo> selectByBean(Integer pageNumber, Integer pageSize, HouseVideo record);

    void deleteByEnabled(String videoId) throws CustomException;

    List<HouseVideo> selectVideoByHouseId(String houseId)throws CustomException;

    PageInfo<HouseVideo> selectVideoByHouseId(String houseId, Integer pageNumber, Integer pageSize) throws CustomException;
}
